<include file="public/layout" />

<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
	<div class="page">
		<div class="fixed-bar">
			<div class="item-title">
				<div class="subject">
					<h3>定制产品香型管理</h3>
					<h5>定制产品香型的添加与管理</h5>
				</div>
			</div>
		</div>
		<div id="explanation" class="explanation">
			<div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
				<h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
				<span title="收起提示" id="explanationZoom"></span>
			</div>
			<ul>
				<li>请不要误删除香型类别，不可恢复</li>
			</ul>
		</div>
		<form method="post">
			<input type="hidden" value="ok" name="form_submit">
			<div class="flexigrid">
				<div class="mDiv">
					<div class="ftitle">
						<h3>白酒香型分类</h3>
						<h5></h5>
					</div>
				</div>
				<div class="hDiv">
					<div class="hDivBox">
						<table cellspacing="0" cellpadding="0" style="width:100%;">
							<thead>
								<tr>
									<th align="center" axis="col0" class="sign">
										<div style="text-align: center; width: 24px;"><i class="ico-check"></i></div>
									</th>
									<th align="center" axis="col1" class="handle">
										<div style="text-align: center; width: 200px;">香型</div>
									</th>
									<th align="center" axis="col2">
										<div style="text-align: center; width:152px;">产品数量</div>
									</th>
									<th align="center" axis="col3">
										<div style="text-align: center; width: 102px;">操作</div>
									</th>
								</tr>
							</thead>
						</table>
					</div>
				</div>
				<div class="tDiv">
					<div class="tDiv2">
						<a href="{:U('Destine/addeditAroma')}">
							<div class="fbutton">
								<div title="添加香型" class="add">
									<span><i class="fa fa-plus"></i>添加香型</span>
								</div>
							</div>
						</a>
					</div>
					<div style="clear:both"></div>
				</div>
				<div style="height: auto;" class="bDiv">
					<table cellspacing="0" cellpadding="0" border="0" id="article_cat_table" class="flex-table autoht">
						<tbody>
							<foreach name="aromaList" item="vo" key="k" >
							<tr>
							<td class="sign" axis="col0">
								<div style="width: 24px;"><i class="ico-check"></i></div>
							</td>
							<td align="left" abbr="order_sn" axis="col3" class="" >
								<div style="text-align:center; width: 200px;" class="">{$vo.title}</div>
							</td>
							<td align="left" abbr="consignee" axis="col4" class="">
								<div style="text-align:center; width: 200px;" class="">0</div>
							</td>
							<td class="handle">
                				<div style="text-align: center; width: 200px;"">
                  					<span class="btn"><em><i class="fa fa-cog"></i>操作<i class="arrow"></i></em>
                  					<ul>
                    					<li><a href="{:U('Destine/addeditAroma',array('id'=>$vo.id))}">编辑</a></li>            
                    					<li><a href="javascript:del('{:U('Destine/delAroma',array('id'=>$vo.id))}');">删除</a></li>
                  					</ul>
                  					</span>
                				</div>
              				</td>
							</tr>
							</foreach>
						</tbody>
					</table>
				</div>
				{$pager}
			</div>
	</div>
	<script>
		$(document).ready(function() {
			 // 点击分页触发的事件
	          $(".pagination  a").click(function(){
	              cur_page = $(this).data('p');
	              location.href = "/admin/destine/desAroma/p/"+cur_page;
	          });
			// 表格行点击选中切换
			$('.bDiv > table>tbody >tr').click(function() {
				$(this).toggleClass('trSelected');
			});
		});

		// 点击展开 收缩节点
		function treeClicked(obj, cat_id, parent_id_path) {

			var src = $(obj).attr('src');
			if(src == '/public/static/images/tv-expandable.gif') {
				$(".parent_id_" + cat_id).show();
				$(obj).attr('src', '/public/static/images/tv-collapsable-last.gif');
			} else {
				$("tr[parent_id_path^='" + parent_id_path + "_']").hide().find('img').attr('src', '/public/static/images/tv-expandable.gif');
				$(obj).attr('src', '/public/static/images/tv-expandable.gif');

			}
		}
	</script>
</body>

</html>